package com.prs.crm.domain.cqunicom;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Person;

/**
 * @author WangTing
 * 
 *         创建时间：2011-3-10
 */

// ///////////////////// 订票派单

@Entity
@Table(name = "cq_pielist")
public class PieList extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	@ManyToOne
    private  Person personMp;
	/**
	 * 
	 * 联系人
	 */
	private String linkman;
	/**
	 * 
	 * //联系电话
	 */
	private String Phone1;

	/**
	 * 
	 * //送票地址
	 */
	private String address;

	/**
	 * 
	 * //送票数量
	 */
	private String Numbers;

	/**
	 * 
	 * //送票时间
	 */
	private Date Dtime;
	/**
	 * 合计金额
	 */
	private Double allPrice;

	/**
	 * 
	 * 备注
	 */
	@Lob
	private String remark;

	/**
	 * 是否接单 1：新单 2：接单 3：拒绝
	 */
	private String accpetFilm;
	/**
	 * 接单人员
	 */
	@ManyToOne
	private Person personPie;
	/**
	 * 交易状态
	 */
	private  String tradeState;
	/**
	 * 交易金额
	 */
	private String tradePrice;
	/**
	 * 客户满意度
	 */
   private String enjoyDegree;
	/**
	 * 回访状态
	 */
	private String backstate;
	/**
	 * 回访价格
	 */
	private Double backPrice;
	/**
	 * 回访时间
	 */
	private  Date visitTime;
	/**
	 * 回访人员
	 */
	@ManyToOne
	private Person visitPerson;
	/**
	 * 回访状态标记
	 * 1:未回访 2：已经回访
	 */
	private  String  backss;
	/**
	 * 回访备注
	 */
	@Lob
	private String backRemark;
	/**
	 * 电影院
	 * 
	 * @return
	 */
	@ManyToOne
	private Movie movieB;
	/**
	 * 影片
	 * 
	 * @return
	 */
	@ManyToOne
	private Film filmB;
	/**
	 * 送票员
	 * 
	 * @return
	 */
	@ManyToOne
	private Sender senderB;

	public Movie getMovieB() {
		return movieB;
	}

	public String getAccpetFilm() {
		return accpetFilm;
	}

	public void setAccpetFilm(String accpetFilm) {
		this.accpetFilm = accpetFilm;
	}

	public String getBackstate() {
		return backstate;
	}

	public Person getPersonPie() {
		return personPie;
	}

	public void setPersonPie(Person personPie) {
		this.personPie = personPie;
	}

	public String getTradeState() {
		return tradeState;
	}

	public void setTradeState(String tradeState) {
		this.tradeState = tradeState;
	}

	public String getTradePrice() {
		return tradePrice;
	}

	public void setTradePrice(String tradePrice) {
		this.tradePrice = tradePrice;
	}

	public void setBackstate(String backstate) {
		this.backstate = backstate;
	}

	public Double getBackPrice() {
		return backPrice;
	}

	public void setBackPrice(Double backPrice) {
		this.backPrice = backPrice;
	}

	public String getBackRemark() {
		return backRemark;
	}

	public String getEnjoyDegree() {
		return enjoyDegree;
	}

	public Person getPersonMp() {
		return personMp;
	}

	public void setPersonMp(Person personMp) {
		this.personMp = personMp;
	}

	public void setEnjoyDegree(String enjoyDegree) {
		this.enjoyDegree = enjoyDegree;
	}

	public Date getVisitTime() {
		return visitTime;
	}

	public void setVisitTime(Date visitTime) {
		this.visitTime = visitTime;
	}

	public String getBackss() {
		return backss;
	}

	public void setBackss(String backss) {
		this.backss = backss;
	}

	public Person getVisitPerson() {
		return visitPerson;
	}

	public void setVisitPerson(Person visitPerson) {
		this.visitPerson = visitPerson;
	}

	public void setBackRemark(String backRemark) {
		this.backRemark = backRemark;
	}

	public void setMovieB(Movie movieB) {
		this.movieB = movieB;
	}

	public Film getFilmB() {
		return filmB;
	}

	public void setFilmB(Film filmB) {
		this.filmB = filmB;
	}

	public Sender getSenderB() {
		return senderB;
	}

	public void setSenderB(Sender senderB) {
		this.senderB = senderB;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Double getAllPrice() {
		return allPrice;
	}

	public void setAllPrice(Double allPrice) {
		this.allPrice = allPrice;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	public String getPhone1() {
		return Phone1;
	}

	public void setPhone1(String phone1) {
		Phone1 = phone1;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getNumbers() {
		return Numbers;
	}

	public void setNumbers(String numbers) {
		Numbers = numbers;
	}

	public Date getDtime() {
		return Dtime;
	}

	public void setDtime(Date dtime) {
		Dtime = dtime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

}
